﻿using System.Windows;
using System.Windows.Controls;

namespace Asko.Lib.Views
{
    public class GraphCanvas : Canvas
    {
        #region Méthodes
        protected override System.Windows.Size ArrangeOverride(System.Windows.Size arrangeSize)
        {
            //foreach (UIElement element in base.Children)
            //{
            //    double x;
            //    double y;
            //    double left = Canvas.GetLeft(element);
            //    double top = Canvas.GetTop(element);
            //    x = double.IsNaN(left) ? 0 : left;
            //    y = double.IsNaN(top) ? 0 : top;

            //    element.Arrange(new Rect(new Point(x, y), element.DesiredSize));
            //}
            //return arrangeSize;
            return base.ArrangeOverride(arrangeSize);
        }
        #endregion
    }
}
